Optimal. Leaf size=37 \[ a \sqrt {a \sec ^2(x)}-a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a \sec ^2(x)}}{\sqrt {a}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.09, antiderivative size = 37, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3657, 4124, 50, 63, 207} \[ a \sqrt {a \sec ^2(x)}-a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a \sec ^2(x)}}{\sqrt {a}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 50
Rule 63
Rule 207
Rule 3657
Rule 4124
Rubi steps
\begin {align*} \int \cot (x) \left (a+a \tan ^2(x)\right )^{3/2} \, dx &=\int \cot (x) \left (a \sec ^2(x)\right )^{3/2} \, dx\\ &=\frac {1}{2} a \operatorname {Subst}\left (\int \frac {\sqrt {a x}}{-1+x} \, dx,x,\sec ^2(x)\right )\\ &=a \sqrt {a \sec ^2(x)}+\frac {1}{2} a^2 \operatorname {Subst}\left (\int \frac {1}{(-1+x) \sqrt {a x}} \, dx,x,\sec ^2(x)\right )\\ &=a \sqrt {a \sec ^2(x)}+a \operatorname {Subst}\left (\int \frac {1}{-1+\frac {x^2}{a}} \, dx,x,\sqrt {a \sec ^2(x)}\right )\\ &=-a^{3/2} \tanh ^{-1}\left (\frac {\sqrt {a \sec ^2(x)}}{\sqrt {a}}\right )+a \sqrt {a \sec ^2(x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 34, normalized size = 0.92 \[ a \sqrt {a \sec ^2(x)} \left (\cos (x) \left (\log \left (\sin \left (\frac {x}{2}\right )\right )-\log \left (\cos \left (\frac {x}{2}\right )\right )\right )+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 49, normalized size = 1.32 \[ \frac {1}{2} \, a^{\frac {3}{2}} \log \left (\frac {a \tan \relax (x)^{2} - 2 \, \sqrt {a \tan \relax (x)^{2} + a} \sqrt {a} + 2 \, a}{\tan \relax (x)^{2}}\right ) + \sqrt {a \tan \relax (x)^{2} + a} a \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.42, size = 42, normalized size = 1.14 \[ a^{2} {\left (\frac {\arctan \left (\frac {\sqrt {a \tan \relax (x)^{2} + a}}{\sqrt {-a}}\right )}{\sqrt {-a}} + \frac {\sqrt {a \tan \relax (x)^{2} + a}}{a}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.42, size = 32, normalized size = 0.86 \[ \left (\cos \relax (x ) \ln \left (-\frac {-1+\cos \relax (x )}{\sin \relax (x )}\right )+\cos \relax (x )+1\right ) \left (\cos ^{2}\relax (x )\right ) \left (\frac {a}{\cos \relax (x )^{2}}\right )^{\frac {3}{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.96, size = 134, normalized size = 3.62 \[ \frac {{\left (4 \, a \cos \left (2 \, x\right ) \cos \relax (x) + 4 \, a \sin \left (2 \, x\right ) \sin \relax (x) + 4 \, a \cos \relax (x) - {\left (a \cos \left (2 \, x\right )^{2} + a \sin \left (2 \, x\right )^{2} + 2 \, a \cos \left (2 \, x\right ) + a\right )} \log \left (\cos \relax (x)^{2} + \sin \relax (x)^{2} + 2 \, \cos \relax (x) + 1\right ) + {\left (a \cos \left (2 \, x\right )^{2} + a \sin \left (2 \, x\right )^{2} + 2 \, a \cos \left (2 \, x\right ) + a\right )} \log \left (\cos \relax (x)^{2} + \sin \relax (x)^{2} - 2 \, \cos \relax (x) + 1\right )\right )} \sqrt {a}}{2 \, {\left (\cos \left (2 \, x\right )^{2} + \sin \left (2 \, x\right )^{2} + 2 \, \cos \left (2 \, x\right ) + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 11.67, size = 33, normalized size = 0.89 \[ a\,\sqrt {a\,{\mathrm {tan}\relax (x)}^2+a}-a^{3/2}\,\mathrm {atanh}\left (\frac {\sqrt {a\,{\mathrm {tan}\relax (x)}^2+a}}{\sqrt {a}}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (a \left (\tan ^{2}{\relax (x )} + 1\right )\right )^{\frac {3}{2}} \cot {\relax (x )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________